package com.xbongbong.saas.domain.dao;

import com.xbongbong.saas.domain.entity.KeFuOnLineLogEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @version v1.0
 * @auther: youli.chen
 * @date 2021/3/31 9:31 上午
 * @since v1.0
 */
@Repository
@Mapper
public interface KeFuOnLineLogDao {

    Integer insert(KeFuOnLineLogEntity keFuOnLineLogEntity);
    Integer update(KeFuOnLineLogEntity keFuOnLineLogEntity);

    void insertBatch(List<KeFuOnLineLogEntity> keFuOnLineLogEntityList);

    Integer deleteByKey(@Param("key") Integer key, @Param("corpid") String corpid);
    KeFuOnLineLogEntity getByKey(@Param("key") Integer key, @Param("corpid") String corpid);


    List<KeFuOnLineLogEntity>  findEntitys(@Param("param") Map<String, Object> param);
    Integer getEntitysCount(@Param("param") Map<String, Object> param);
}
